n = int(input())

data = list(map(int,input().split()))

ans = 1

for d in data:
    ans *= d

print(ans)